package com.lunhui.user.provider;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@Configuration
@SpringBootApplication(exclude = MongoAutoConfiguration.class)
@EnableTransactionManagement
@ComponentScan({"com.lunhui.user","springfox"})
@EnableScheduling
@MapperScan({"com.lunhui.user.dal.dao"})
public class LunHuiUserProviderApplication {

    public static void main(String[] args) {
        SpringApplication app = new SpringApplication(LunHuiUserProviderApplication.class,"classpath:spring/*.xml");

        app.run(args);
    }

}
